<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/aui/aui.css" />
		<style type="text/css">
			#textarea {
				margin: 0;
				height: 90%;
				-webkit-box-sizing: border-box;
				box-sizing: border-box;
			}
		</style>
	</head>
	<body>
		<textarea id="textarea" placeholder="请编写Markdown语法后预览"></textarea>
	</body>
	<script type="text/javascript" src="../../script/AHelper.js"></script>
	<script type="text/javascript" src="../../script/zepto.min.js"></script>
	<script type="text/javascript">
		function openView() {
			var markdown = $("#textarea").val();
			H.$setStorage('markdown', markdown);
			H.$setPrefs(function(ret, err) {
				H.$openWin('markdown_view_head', 'markdown_view_head.html');
			}, 'markdown', markdown);
		}
	</script>
</html>